package com.teame.readbaby.parser;

import java.util.List;

import org.json.JSONException;



import com.alibaba.fastjson.JSONObject;

import com.teame.readbaby.vo.TopicProductListInfo;

public class TopicProductListParser extends BaseParser<List<TopicProductListInfo>>  {

	@Override
	public List<TopicProductListInfo> parseJSON(String paramString) throws JSONException{
	String result = checkResponse(paramString);
	if (result == null) {
		return null;
	}

	JSONObject jsonObject = JSONObject.parseObject(paramString);
	String jsontopicproductlist = jsonObject.getString("productlist");

	List<TopicProductListInfo> topicProductList = JSONObject.parseArray(jsontopicproductlist, TopicProductListInfo.class);
	return topicProductList;
	}

}
